/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package baiwa.rta.model;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author jirapatjantsakool
 */
public class RMcsdtlModel extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer csdtlid;
    private String csdcarplt;
    private String csdrcvby;
    private Date csdrcvdat;
    private String csdtyp;
    private String csdstat;
    private String csdremark;
    private String csdcreby;
    private Date csdcredat;
    private String csdupdby;
    private Date csdupddat;
    
    private Integer rlrmid;
    private TowerModel tower;

    public RMcsdtlModel() {
    }

    public RMcsdtlModel(Integer csdtlid) {
        this.csdtlid = csdtlid;
    }

    public Integer getCsdtlid() {
        return csdtlid;
    }

    public void setCsdtlid(Integer csdtlid) {
        this.csdtlid = csdtlid;
    }

    public String getCsdcarplt() {
        return csdcarplt;
    }

    public void setCsdcarplt(String csdcarplt) {
        this.csdcarplt = csdcarplt;
    }

    public String getCsdrcvby() {
        return csdrcvby;
    }

    public void setCsdrcvby(String csdrcvby) {
        this.csdrcvby = csdrcvby;
    }

    public Date getCsdrcvdat() {
        return csdrcvdat;
    }

    public void setCsdrcvdat(Date csdrcvdat) {
        this.csdrcvdat = csdrcvdat;
    }

    public String getCsdtyp() {
        return csdtyp;
    }

    public void setCsdtyp(String csdtyp) {
        this.csdtyp = csdtyp;
    }

    public String getCsdstat() {
        return csdstat;
    }

    public void setCsdstat(String csdstat) {
        this.csdstat = csdstat;
    }

    public String getCsdremark() {
        return csdremark;
    }

    public void setCsdremark(String csdremark) {
        this.csdremark = csdremark;
    }

    public String getCsdcreby() {
        return csdcreby;
    }

    public void setCsdcreby(String csdcreby) {
        this.csdcreby = csdcreby;
    }

    public Date getCsdcredat() {
        return csdcredat;
    }

    public void setCsdcredat(Date csdcredat) {
        this.csdcredat = csdcredat;
    }

    public String getCsdupdby() {
        return csdupdby;
    }

    public void setCsdupdby(String csdupdby) {
        this.csdupdby = csdupdby;
    }

    public Date getCsdupddat() {
        return csdupddat;
    }

    public void setCsdupddat(Date csdupddat) {
        this.csdupddat = csdupddat;
    }

    public Integer getRlrmid() {
        return rlrmid;
    }

    public void setRlrmid(Integer rlrmid) {
        this.rlrmid = rlrmid;
    }

    public TowerModel getTower() {
        return tower;
    }

    public void setTower(TowerModel tower) {
        this.tower = tower;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (csdtlid != null ? csdtlid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof RMcsdtlModel)) {
            return false;
        }
        RMcsdtlModel other = (RMcsdtlModel) object;
        if ((this.csdtlid == null && other.csdtlid != null) || (this.csdtlid != null && !this.csdtlid.equals(other.csdtlid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "baiwa.rta.model.Rmcsdtl[ csdtlid=" + csdtlid + " ]";
    }
    
}
